package com.gzc.pm.ro;

import cn.skyclass.net.OperationResult;

import com.gzc.pm.bean.AlarmRuleBean;
import com.gzc.pm.dao.AlarmRuleDao;

public class AlarmRuleRo {

	public AlarmRuleBean getByUserId(String userId){
		AlarmRuleDao dao = new AlarmRuleDao();
		return dao.getByUserId(userId);
	}
	
	public OperationResult updateByUserId(AlarmRuleBean bean){
		AlarmRuleDao dao = new AlarmRuleDao();
		return dao.updateByUserId(bean);
	}
	
	public OperationResult insert(AlarmRuleBean bean){
		AlarmRuleDao dao = new AlarmRuleDao();
		return dao.insert(bean);
	}
	
}
